package com.example.lighttest;

import java.io.IOException;

public class URLAccessor extends Thread{
	String operation;
	boolean isDone = false;
	
	public void start(String operation) {
		super.start();
		this.operation = operation;
	}
	
	public void run(){
		try {
			accessURL();
		}catch(IOException ex) {
			System.out.println("Receiver Thread Exception");
			System.exit(0);
		}
	}
	
	private void accessURL() throws IOException {
		System.out.println("xxxxxxxxxx In Accessor Thread!");
		System.out.println("My operation is " + operation);
		this.isDone = true;
	}
}
